package com.ssss.builder;

/**
 * 具体的建造者，这里是电脑店的一个装机人员
 */
public class XiaoMingBuilder implements Builder{

    private Computer computer = new Computer();

    @Override
    public void createBoard(String board) {
        computer.setBoard(board);
    }

    @Override
    public void createCpu(String cpu) {
        computer.setCpu(cpu);
    }

    @Override
    public void createMemory(String memory) {
        computer.setMemory("1888");
    }

    @Override
    public void createKey(String key) {
        computer.setKey(key);
    }

    @Override
    public void createMouse(String mouse) {
        computer.setMouse(mouse);
    }

    @Override
    public Computer getComputer() {
        return computer;
    }
}
